function models(DataType, db) {
    let model = db.define('role', {
        id: {
            type: DataType.INTEGER,
            allowNull: false,
            autoIncrement: true,
            primaryKey: true
        },
        role: {
            type: DataType.STRING,
            comment: '权限',
            allowNull: false
        },
        menu: {
            type: DataType.TEXT,
            comment: '菜单表',
            allowNull: false
        },
        remake: {
            type: DataType.STRING,
            comment: '备注',
            allowNull: false
        }
    });
    // model.sync({force: true});
    return model;
}

exports.models = models;
